package com.yunfei.api.user.param;

import com.yunfei.api.user.contants.ValitationConstant;
import com.yunfei.contants.ValitationConstantMessage;
import org.apache.commons.lang.builder.ToStringBuilder;

import javax.validation.constraints.Pattern;

/**
 * 发送短信验证码后台校验
 */
public class SendCodeParam implements java.io.Serializable{
    @Pattern(regexp= ValitationConstant.MOBILE_REG, message= ValitationConstantMessage.MOBILE_REG_MESSAGE)
    private String mobile;//手机号码

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}